<div id="maincontent">

<%= render :partial => "shared_common_files/data_area_help_bar" %>

<%if (params['node'] == "salesforce") %>
	
	<h2>Salesforce > Browse Objects</h2>

	<div class="list">
		<table id="browse_objects">
  			<tr>
				<th>Data Objects</th>
				<th>Action</th>
  			</tr>
  		
			<% count=1;%>	  
			<% rowtype="odd";%>
	
			<%for module_name in @modules_list%>
	
			<%if(isodd(count))%>
				<% rowtype="odd";%>
			<%else%>
				<% rowtype="even";%>
			<%end%>  
			
			<tr class="<%=rowtype%>">
				<td><!-- a href="/integration/objectdetail?node=<%=params['node']%>&name=<%=module_name%>" --><%=module_name%></td>
		 	<td>
					<%if(canRequestLink("integration","objectdetail"))%>
						<a href="/integration/objectdetail?node=<%=params['node']%>&name=<%=module_name%>"><img src='/themes/odotclassic/images/show.png' title = "Details"></a>
			      	<%end%>
					
                </td>
		 	</tr>
		 	
		 	<% count = count + 1 %>

			<%end%>
		</table>
	</div> 
	
<%elsif (params['node'] == "sugarcrm")%>
	
	<h2>SugarCRM > Browse Objects</h2>
	
	<div class="list">
		<table id="browse_objects">
  			<tr>
				<th>Data Objects</th>
				<th>Actions</th>
  			</tr>
  		
			<% count=1;%>	  
			<% rowtype="odd";%>
			
			<%for module_name in @modules_list.modules%>
	
			<%if(isodd(count))%>
				<% rowtype="odd";%>
			<%else%>
				<% rowtype="even";%>
			<%end%>  
			
			<tr class="<%=rowtype%>">
				<td>
					<!-- a href="/integration/objectdetail?node=<%=params['node']%>&name=<%=module_name%>" --><%=module_name%>
					
				</td>
				<td>
					<%if(canRequestLink("integration","objectdetail"))%>
						<a href="/integration/objectdetail?node=<%=params['node']%>&name=<%=module_name%>"><img src='/themes/odotclassic/images/show.png' title = "Details"></a>
			      	<%end%>
					<%if(canRequestLink("integration","newrecord"))%>
						<a href="/integration/newrecord?node=<%=params['node']%>&name=<%=module_name%>"><img src='/themes/odotclassic/images/new.png' title = "New"></a>
			      	<%end%>
                </td>
		 	</tr>
		 	
		 	<% count = count + 1 %>

			<%end%>
	
		</table>
	</div> 
<%end%>
<br/>
<div class="list">

	<table>
	     <th>Action</th>
         <tr class="even">
            <td>
            <a href="javascript:history.go(-1);"><img src="/themes/odotclassic/images/btn_cancel.gif"/></a>
              
            </td>
         </tr>  
               
	</table>

</div>  
</div>